package com.usian.service;

import com.usian.AdNode;
import com.usian.PageResult;
import com.usian.pojo.TbContent;
import com.usian.pojo.TbContentCategory;

import java.util.List;

public interface ContentService {
    List<TbContentCategory> selectContentCategoryByParentId(Long id);

    Integer insertContentCategory(Long parentId, String name);

    Integer deleteContentCategoryById(Long categoryId);

    PageResult selectTbContentAllByCategoryId(Long categoryId, Integer page, Integer rows);

    int insertTbContent(TbContent tbContent);

    int deleteContentByIds(Long ids);

    List<AdNode> selectFrontendContentByAD();
}
